<?php $this->load->view('include/header');?>
<div id="maincontainer">
	<div id="main-content">
        <div id="header-title">
            <h1>Chương Trình Học Miễn Phí Tại Kho Học Liệu <br/> Trường Đại Học Kinh Tế Công nghiệp Long An.</h1>
        </div><!--end#header-title-->
    		<div id="main_nav">
			<?php $this->load->view('khoa/v_menu_nganh');?>
		</div><!--end div#main_nav-->
           <div id="left-col">
            <?php $this->load->view('include/menu_left');?>
        </div>
	<div class="bg_view">
             <?php
                  if(isset($baigiang)){
                    foreach($baigiang->result_array() as $row_baigiang):     
              ?> 
                <div class="tuan">
                    Tuần Thứ:<b><?php echo $row_baigiang['tuan']; ?></b>
                </div> <!-- end #div tuan-->
                <div class="ten_bg">
                    <b><a href="<?php echo site_url('baigiang/chitietbaigiang/'.$row_baigiang['id']);?>"><?php echo $row_baigiang['ten_bai']; ?></a></b>
                </div><!-- end #div ten_bg-->  
                <div class="noidung_bg">
                    <p><?php echo substr($row_baigiang['noidung'],9,700); echo'...'; ?></p>
                </div><!-- end #div noidung-->  
                <!--<div class="ngay">
                   <b>Ngày Đăng:</b> <?php echo date('d-m-y',strtotime($row_baigiang['ngay'])); ?>
                </div> end #div end ngay->  
                <?php if(($row_baigiang['images'])!=""){?>   
                <div class="hinh">
                    <img src="<?php echo base_url()."upload/images/".$row_baigiang['images']?>" alt=""/>
                </div>
                <?php } ?>
                <?php if(($row_baigiang['video'])!=""){?>    
                    <div class="video">
                        <object width="338" height="300">
                            <param name="src" value="<?php echo base_url()."upload/videos/".$row_baigiang['video']?>"/>
                            <param name="autoplay" value="false"/>
                            <param name="controller" value="true"/>
                            <param name="bgcolor" value="#333333"/>
                            <embed TYPE="application/x-mlayer2" src="<?php echo base_url()."upload/videos/".$row_baigiang['video']?>" autostart="false" loop="false" width="338" height="300" controller="true" bgcolor="#333333"/>
                        </object>
                       
                    </div>
                 <?php } ?> 
                 <?php if(($row_baigiang['tailieu'])!=""){?>   
                <div class="tailieu">
                         <a href="<?php echo base_url()."upload/data/". $row_baigiang['tailieu']; ?>" target="_blank">Xem tài liệu</a>
                </div>-->
                <?php } ?>
                 
            <?php    endforeach;
                      }
                ?>
    </div>
	</div><!--End div#main-content-->
</div><!--end #maincontainer-->
<?php $this->load->view('include/footer');?>